<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>如风壁纸 - 分类</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="css/styles.css">
</head>
<body class="bg-gray-50 text-gray-900 font-sans">
    <div id="app" class="phone-container relative overflow-hidden mx-auto">
        <!-- Status Bar -->
        <div id="status-bar" class="status-bar flex justify-between items-center px-5 py-1 bg-black bg-opacity-10 text-white text-xs">
            <span id="time">9:41</span>
            <div class="status-icons flex space-x-1">
                <span><i class="fas fa-signal"></i></span>
                <span><i class="fas fa-wifi"></i></span>
                <span><i class="fas fa-battery-three-quarters"></i></span>
            </div>
        </div>

        <!-- Main Content Area -->
        <div id="content" class="content-area bg-white">
            <!-- Categories Page Content -->
            <div class="p-4">
                <h1 class="text-2xl font-bold mb-4">分类浏览</h1>
                
                <div class="categories-list">
                    <!-- Category Cards -->
                    <div class="category-card" data-id="nature">
                        <img src="https://picsum.photos/seed/nature/500/300" alt="自然风光" />
                        <div class="category-title">自然风光</div>
                    </div>
                    
                    <div class="category-card" data-id="city">
                        <img src="https://picsum.photos/seed/city/500/300" alt="城市风景" />
                        <div class="category-title">城市风景</div>
                    </div>
                    
                    <div class="category-card" data-id="abstract">
                        <img src="https://picsum.photos/seed/abstract/500/300" alt="抽象艺术" />
                        <div class="category-title">抽象艺术</div>
                    </div>
                    
                    <div class="category-card" data-id="minimal">
                        <img src="https://picsum.photos/seed/minimal/500/300" alt="简约设计" />
                        <div class="category-title">简约设计</div>
                    </div>
                    
                    <div class="category-card" data-id="dark">
                        <img src="https://picsum.photos/seed/dark/500/300" alt="深色系列" />
                        <div class="category-title">深色系列</div>
                    </div>
                    
                    <div class="category-card" data-id="bright">
                        <img src="https://picsum.photos/seed/bright/500/300" alt="明亮系列" />
                        <div class="category-title">明亮系列</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Tab Bar -->
        <div id="tab-bar" class="tab-bar flex justify-around items-center px-2 py-3 bg-white border-t border-gray-200">
            <a href="home.html" class="tab-item flex flex-col items-center text-gray-500">
                <i class="fas fa-home text-lg"></i>
                <span class="text-xs mt-1">首页</span>
            </a>
            <a href="categories.html" class="tab-item flex flex-col items-center text-blue-500">
                <i class="fas fa-th-large text-lg"></i>
                <span class="text-xs mt-1">分类</span>
            </a>
            <a href="favorites.html" class="tab-item flex flex-col items-center text-gray-500">
                <i class="fas fa-heart text-lg"></i>
                <span class="text-xs mt-1">收藏</span>
            </a>
            <a href="settings.html" class="tab-item flex flex-col items-center text-gray-500">
                <i class="fas fa-cog text-lg"></i>
                <span class="text-xs mt-1">设置</span>
            </a>
        </div>
    </div>

    <script src="js/app.js"></script>
    <script>
        // Initialize clock for this page
        function updateClock() {
            const now = new Date();
            const hours = now.getHours().toString().padStart(2, '0');
            const minutes = now.getMinutes().toString().padStart(2, '0');
            document.getElementById('time').textContent = `${hours}:${minutes}`;
        }
        
        // Update clock
        updateClock();
        setInterval(updateClock, 60000);
        
        // Add event listeners to category cards
        document.querySelectorAll('.category-card').forEach(card => {
            card.addEventListener('click', () => {
                const categoryId = card.getAttribute('data-id');
                // Navigate to a category-specific page
                window.location.href = `category-detail.html?id=${categoryId}`;
            });
        });
    </script>
</body>
</html> 